package com.zhijian.wharf.entity.vo.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 登录vo
 *
 * @author HCG
 * @version 1.0
 * @date 2021/7/6
 */
@Api(tags = "登录请求vo")
@Data
public class WebLoginVo implements Serializable {
    private static final long serialVersionUID = -3716049147958059444L;

    /**
     * 手机号，登录用字段
     */
    @ApiModelProperty("手机号，登录用字段")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @NotNull(message = "密码不能为空")
    private String password;

    /**
     * 验证码
     */
    @ApiModelProperty("验证码")
    private String code;

    /**
     * 唯一标识
     */
    @ApiModelProperty("唯一标识")
    private String uuid = "";

    /**
     * 无验证码登录验证
     */
    private Boolean noCaptcha;

}
